package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xmy.cultivate.enums.ChargeModeEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单价格记录
 * </p>
 *
 * @author min
 * @since 2022-09-22
 */
@TableName("order_course_pricing")
@Data
public class OrderCoursePricing implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 单位
     */
    private String countUnit;

    /**
     * 单位价格
     */
    private BigDecimal unitPrice;

    /**
     * 价格
     */
    private BigDecimal price;

    private BigDecimal servePrice;

    private BigDecimal materialsPrice;

    private BigDecimal allPrice;

    /**
     * 收费模式，1按课时收费，2按时间收费，3按期收费
     */
    private ChargeModeEnum chargeMode;

    private Integer deleted;

    private Integer version;
}
